From a5acbba24503b4b6b0a7a188d773d42a5edc3513 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 29 Feb 2008 02:57:39 +0000 Subject: [PATCH] (desktop-save): Save the buffer name if the uniquified base name is empty. --- lisp/desktop.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/desktop.el b/lisp/desktop.el index 8be86571f13..fbf9ed5c044 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -895,8 +895,9 @@ See also `desktop-base-file-name'." "desktop-append-buffer-args") " " desktop-file-version) - ;; If the base name is non-nil, we save it instead of the buffer name - (when base (setcar (nthcdr 1 l) base)) + ;; If there's a non-empty base name, we save it instead of the buffer name + (when (and base (not (string= base ""))) + (setcar (nthcdr 1 l) base)) (dolist (e l) (insert "\n " (desktop-value-to-string e))) (insert ")\n\n")))) -- 2.30.2